//
//  LeftDetailTableViewCell.m
//  BeautyClother
//
//  Created by dllo on 15/9/8.
//  Copyright (c) 2015年 宋爽. All rights reserved.
//

#import "LeftDetailTableViewCell.h"

@implementation LeftDetailTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
        layout.scrollDirection = UICollectionViewScrollDirectionHorizontal;
        CGFloat offheifht = [UIScreen mainScreen].bounds.size.height / 667;
        CGFloat offwidth = [UIScreen mainScreen].bounds.size.width / 375;
        layout.itemSize = CGSizeMake(90 * offwidth, 90 * offheifht);
        CGRect rect = [[UIScreen mainScreen] bounds];
        self.liuxing = [[UICollectionView alloc] initWithFrame:CGRectMake(10 * offwidth, 0, rect.size.width - 20 * offwidth, 100 * offheifht)collectionViewLayout:layout];
        [self.contentView addSubview:_liuxing];
        self.liuxing.backgroundColor = [UIColor whiteColor];
        [_liuxing release];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
